package demo

//
////func main() {
////	log, _ := winlog.Subscribe("Security", "*")
////	event, _ := log.Fetch()
////	fmt.Println(event)
////
////}
//
//import (
//	"fmt"
//
//	winlog "github.com/scalingdata/gowinlog"
//)
//
//func main() {
//	watcher, err := winlog.NewWinLogWatcher()
//	if err != nil {
//		fmt.Printf("Couldn't create watcher: %v\n", err)
//		return
//	}
//	//watcher.Event()
//	// Recieve any future messages
//	watcher.SubscribeFromBeginning("Application", "*") ///("")
//	for {
//		select {
//		case evt := <-watcher.Event():
//			// Print the event struct
//			fmt.Printf("Event: %v\n", evt)
//			// Print the updated bookmark for that channel
//			fmt.Printf("Bookmark XML: %v\n", evt.Bookmark)
//		case err := <-watcher.Error():
//			fmt.Printf("Error: %v\n\n", err)
//		}
//	}
//}
